#ifndef EMULATOR_H
#define EMULATOR_H

#include <QObject>
#include "agnes.h"
#include <QImage>

class Emulator : public QObject
{
    Q_OBJECT
public:
    explicit Emulator(QObject *parent = nullptr);
    ~Emulator();

public slots:
    bool load(QString& romfile);
    void step(QImage& frame, agnes_input_t* player1, agnes_input_t* player2);

private:
    agnes_t* console;
    QByteArray game;
};

#endif // EMULATOR_H
